{% macro nav %}
<nav class="navbar navbar-inverse navbar-no-bg">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false"
                aria-controls="navbar">
                <span class="sr-only">TeamCheck</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">TeamCheck</a>
        </div>
        <div id="navbar" class="collapse navbar-collapse">
            <ul class="nav navbar-nav">
                <li class="active">
                    <a href="#">列表</a>
                </li>
                <li>
                    <a href="#about">关于</a>
                </li>
                <li>
                    <a href="#contact">帮助</a>
                </li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                {% if current_user.is_authenticated %}
                <li>
                    <a href="{{ url_for("TCview.user",Id=current_user.Id) }}"></a>
                </li>
                {% else %}
                <li>
                    <a href="{{ url_for("loginview.index") }}">登录</a>
                </li>
                <li class="active">
                    <a href="{{ url_for("loginview.register") }}">注册</a>
                </li>
                {% endif %}
            </ul>
        </div>
        <!--/.nav-collapse -->
    </div>
</nav>
{% endmacro %}